package com.zifeng.study.springbootshirojwtdemo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author: 吴梓锋
 * @date: 2022/01/14 15:32:08
 * @version: 1.0.0
 * @description: 用户实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    int id;
    @NotBlank(message = "用户名不能为空")
    String userName;
    @NotBlank(message = "密码不能为空")
    String password;
    int roleId;

}
